# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
    ['app_exe.py'],
    pathex=[],
    binaries=[],
    datas=[('static', 'static')],
    hiddenimports=['PyQt5.QtWebEngine', 'PyQt5.QtWebEngineCore', 'PyQt5.QtWebEngineWidgets'],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)
plist = {
    'CFBundleName': 'MyApp',
    'CFBundleDisplayName': '我的应用',
    'LSUIElement': True,  # 关键：设置为True隐藏控制台
}

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='app',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    plist=plist
)
